<!DOCTYPE html>
<html>

	<head>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>H+ 后台主题UI框架 - 空白页</title>
		<meta name="keywords" content="">
		<meta name="description" content="">

		<link rel="shortcut icon" href="../favicon.ico">
		<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
		<link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
		<!-- jqgrid-->
		<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
		<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
		<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
		<link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
		<link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
		<script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
		<script src="__STATIC__/sc/js/page.js"></script>
	</head>

	<body style="color:#333;padding:3px;overflow-x: auto;">
		<!-- 标题 -->
		<div class="page-heade">
			<h1 class="title_color">所属促销活动执行报表(网点订单类)</h1>
		</div>
		<!-- 标题 -->
		<div class="row-margin-top">
			<form action="#" method="post" id="form_check" class="form-inline formpage">
				<input type="hidden" value='{$page}' name="page" id="page-go" />
				<input type="hidden" value='{$list}' name="list" id="list-go" />
				<table class="row-margin-top tab-content table-bordered  table" border="1">
					<tr>
						<td><label for="" class="form-label">活动时间：</label></td>
						<td>
							<div class="form-group">
								<input type="text" id="start" class="form-control layer-date " style="width: 80px;min-width: 80px; height: 26px;display: inline-block;" name="start" value="{$data.start}">
							</div>
							<div class="form-group">
								至
							</div>
							<div class="form-group">
								<input type="text" class="form-control layer-date" style="width: 100px;min-width: 100px; height: 26px;display: inline-block;" id="end" name="end" value="{$data.end}">
							</div>
						</td>
						<td><label for="" class="form-label">活动编号：</label></td>
						<td><input type="text" class="form-control" name="sn" value="{$data.sn}"></td>
						<td><label for="" class="form-label">活动主题：</label></td>
						<td><input type="text" class="form-control" name="title" value="{$data.title}"></td>
					</tr>
					<tr>
						<td colspan="6" class="text-center">
							<button class="btn btn-info btn-sm query" type="button" id="check">查询</button>
							<button class="btn btn-info btn-sm emptyIf" type="button" id="clear_check">清空查询条件</button>
							<button class="btn btn-info LendExcel" type="button">导出Excel</button>
						</td>
					</tr>
				</table>

				<table class="table row-margin-top table-bordered  text-center">
					<tr class="info text-center">
						<th style="min-width: 40px" class="text-center">序号</th>
						<th style="min-width: 140px" class="text-center">活动编号</th>
						<th style="min-width: 240px" class="text-center">活动主题</th>
						<th style="min-width: 120px" class="text-center">活动开始时间</th>
						<th style="min-width: 120px" class="text-center">活动结束时间</th>
						<th style="min-width: 100px" class="text-center">执行网点数</th>
						<th style="min-width: 240px" class="text-center">产品名称</th>
						<th style="min-width: 120px" class="text-center">预计费用额(元)</th>
						<th style="min-width: 140px" class="text-center">实际投入费用额(元)</th>
						<th style="min-width: 100px" class="text-center">费用使用率</th>
						<th style="min-width: 120px" class="text-center">销量汇总(元)</th>
					</tr>
					<tbody>
						{volist name="apply" id="vo" key="k"}
						<tr>
							<td>{$k}</td>
							<td>{if $vo.type_id==0}
								<a class="J_menuItem" href="{:url('ti_apply2/view',['id'=>$vo.id])}">{elseif $vo.type_id==1}
									<a class="J_menuItem" href="{:url('Tijinchang/view',['id'=>$vo.id])}">{else/}
										<a class="J_menuItem" href="{:url('ti_apply/apply_de',['aid'=>$vo.id])}">{/if}{$vo.sn}</a>
							</td>
							<td class="text-left">{$vo.title}</td>
							<td>{:date("Y-m-d",$vo.start)}</td>
							<td>{:date("Y-m-d",$vo.end)}</td>
							<td>{$vo.net}</td>
							<td class="text-left">{volist name="$vo.pro" id="p"}{$p.pro_name}<br/>{/volist}</td>
							<td class="ObjectNum text-right">{$vo.yjsjtrfy}</td>
							<td class="ObjectNum text-right">{$vo.sjtrfy}</td>
							<td class="text-right"><span class="ObjectNum">{$vo.syl}</span>%</td>
							<td class="ObjectNum text-right">{$vo.xiaoliang}</td>
						</tr>
						{/volist}

					</tbody>
				</table>

				<h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            		<script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                    </script> 
                    	每页显示
           			<select id="pagesize">
                        <option value='10' {if condition="$list eq 10"}selected{/if}>10条</option>
                        <option value='20'{if condition="$list eq 20"}selected{/if}>20条</option>
                        <option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>

            		</select>
        		</h5>
			</form>
		</div>
		<!-- 全局js -->
		<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
		<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
		<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<!--统计代码，可删除-->
		<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
		<script src="__STATIC__/layout/js/common.js"></script>
		<script src="__STATIC__/layout/js/contabs_sub.js"></script>
		<script>
			$(".LendExcel").click(function() {
				window.open("{:url('jinzhandc')}")
			})
		
			$("#check").click(function() {

				$(".formpage").submit();
			})
			$("#clear_check").click(function() {
				$("input[type='text']").val("");
				//$("#state").val(0);
				$(".formpage").submit();
			})
			$(document).ready(function() {
				var $ObjectNum = $(".ObjectNum");
				toNum($ObjectNum);
			});
			//日期范围限制
			var start = {
				elem: '#start',
				format: 'YYYY-MM-DD',
				// min: laydate.now(), //设定最小日期为当前日期
				max: '2099-06-16 23:59:59', //最大日期
				istime: true,
				istoday: false,
				choose: function(datas) {
					end.min = datas; //开始日选好后，重置结束日的最小日期
					end.start = datas //将结束日的初始值设定为开始日
				}
			};
			var end = {
				elem: '#end',
				format: 'YYYY-MM-DD',
				//min: laydate.now(),
				max: '2099-06-16 23:59:59',
				istime: true,
				istoday: false,
				choose: function(datas) {
					start.max = datas; //结束日选好后，重置开始日的最大日期
				}
			};
			laydate(start);
			laydate(end);
		</script>
	</body>

</html>